package weathercrowd.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="public.userrainfall")
@PrimaryKeyJoinColumn(name="id")
public class UserRainfall extends Rainfall {
	User user;
	
	public UserRainfall() {
		
	}

	@ManyToOne()
	@JoinColumn(name="userid")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
